package com.jrx.anytxn.reporting.job.lsSecondFile.step;

import com.jrx.anytxn.customer.entity.CmCustomerContactInfo;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.batch.MyBatisPagingItemReader;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 生成第二代征信个人关联信息 Reader
 *
 * @author liuyang
 * @date 2021-04-26
 */
public class LSSecondCustContactFileReader extends MyBatisPagingItemReader<CmCustomerContactInfo> {
    public LSSecondCustContactFileReader(SqlSessionFactory sqlSessionFactory, Integer pageSize, Date startTime){
        setSaveState(false);
        setPageSize(pageSize);
        setSqlSessionFactory(sqlSessionFactory);
        setQueryId("com.jrx.anytxn.customer.mapper.ext.ExtCmCustomerContactInfoMapper.selectByUpdateTime");
        Map<String,Object> map = new HashMap<>();
        map.put("startTime",startTime);
        setParameterValues(map);
    }
}
